/**
 * @file tablevieweventfilterchain.h
 * @author huangxb
 * @email 18228033207@163.com
 * @date 2025-07-08
 * @brief 表格视图事件处理类
 */
#ifndef TABLEVIEWEVENTFILTER_H
#define TABLEVIEWEVENTFILTER_H

#include <QObject>

class QTableView;

/**
 * @brief 鼠标点击空白处清空选中
 */
class CClearSelectionEventFilter
        : public QObject
{
    Q_OBJECT

private:
    QTableView *m_pOwner = nullptr;

public:
    explicit CClearSelectionEventFilter(QObject *parent = nullptr);
    explicit CClearSelectionEventFilter(QTableView* pOwner, QObject *parent = nullptr);

protected:
    bool eventFilter(QObject *watched, QEvent *event) override;

};

#endif // TABLEVIEWEVENTFILTER_H
